import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: 'home'
    },

    {
      path: '/home',
      component: () => import('@/views/index')
    },

    {
      path: '/fa',
      component: () => import('@/views/FinancialAnalysis')
    },

    {
      path: '/auction',
      component: () => import('@/views/Auction')
    },

    {
      path: '/panel',
      component: () => import('@/views/Panel')
    },
    {
      path: '/login',
      component: () => import('@/views/login')
    },
    {
      path: '/auctionOut',
      beforeEnter() {location.href = 'http://localhost/auction/#/'}
    }
  ]
})
